<template>
  <div class="search">
    <f-form ref="form2" :action="api.shop" :form-key="formItem.shopId">
      <a-divider orientation="left">店铺照片</a-divider>
      <f-form-item type="upload" name="shopLogo" :value="formItem.shopLogo" :file-max="10" :busId="formItem.shopId" busType="ProdShop" :realRemove="true"/>
    </f-form>
  </div>
</template>

<script>
  export default {
    name: 'ShopImages',
    props: {},
    data() {
      return {
        isAdd: true,
        loaded: false,
        formItem: this.getFormItem()
      }
    },
    methods: {
      getFormItem() {
        return {
          shopId: '',
          shopVideo: '',
          shopLogo: ''
        }
      },
      handleSubmit(callback) {
        callback()
      },

      setData(userInfo) {
        this.formItem.shopId = userInfo.companyId
        this.$refs.form2.resetFields()
        this.http.get(this, {
          url: this.api.file.list,
          params: {
            busId: this.formItem.shopId,
            busType: 'ProdShop',
            fileType: 'image'
          },
          success: function(me, data) {
            me.loaded = true
            me.formItem.shopLogo = data
          }
        })


      }
    },
    created() {

    },
    components: {}
  }
</script>

<style scoped lang="less" rel="stylesheet/less">

</style>
